package com.ruoyi.service.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.service.mapper.ServiceNameMapper;
import com.ruoyi.service.domain.ServiceName;
import com.ruoyi.service.service.IServiceNameService;

/**
 * 耗材别名Service业务层处理
 * 
 * @author ZDL
 * @date 2024-10-21
 */
@Service
public class ServiceNameServiceImpl implements IServiceNameService 
{
    @Autowired
    private ServiceNameMapper serviceNameMapper;

    /**
     * 查询耗材别名
     * 
     * @param nameId 耗材别名主键
     * @return 耗材别名
     */
    @Override
    public ServiceName selectServiceNameByNameId(Long nameId)
    {
        return serviceNameMapper.selectServiceNameByNameId(nameId);
    }

    /**
     * 查询耗材别名列表
     * 
     * @param serviceName 耗材别名
     * @return 耗材别名
     */
    @Override
    public List<ServiceName> selectServiceNameList(ServiceName serviceName)
    {
        return serviceNameMapper.selectServiceNameList(serviceName);
    }

    /**
     * 新增耗材别名
     * 
     * @param serviceName 耗材别名
     * @return 结果
     */
    @Override
    public int insertServiceName(ServiceName serviceName)
    {
        return serviceNameMapper.insertServiceName(serviceName);
    }

    /**
     * 修改耗材别名
     * 
     * @param serviceName 耗材别名
     * @return 结果
     */
    @Override
    public int updateServiceName(ServiceName serviceName)
    {
        return serviceNameMapper.updateServiceName(serviceName);
    }

    /**
     * 批量删除耗材别名
     * 
     * @param nameIds 需要删除的耗材别名主键
     * @return 结果
     */
    @Override
    public int deleteServiceNameByNameIds(Long[] nameIds)
    {
        return serviceNameMapper.deleteServiceNameByNameIds(nameIds);
    }

    /**
     * 删除耗材别名信息
     * 
     * @param nameId 耗材别名主键
     * @return 结果
     */
    @Override
    public int deleteServiceNameByNameId(Long nameId)
    {
        return serviceNameMapper.deleteServiceNameByNameId(nameId);
    }
}
